package com.py.inbound.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 py_inbound_detalis
 *
 * @author ruoyi
 * @date 2024-12-02
 */
public class PyInboundDetalis extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 入库商品明细id
     */
    private Integer rkDetailsId;

    /**
     * 入库编码
     */
    @Excel(name = "入库编码")
    private String inventoryNumber;

    /**
     * 商品编码
     */
    @Excel(name = "商品编码")
    private String productCode;

    /**
     * 进货订单编码
     */
    @Excel(name = "进货订单编码")
    private String phCode;

    /**
     * 进货明细主键
     */
    @Excel(name = "进货明细主键")
    private Integer phDetailsId;

    /**
     * 库位id
     */


    /**
     * 本次入库数量
     */
    @Excel(name = "本次入库数量")
    private Integer quantityThisTime;

    /**
     * 已入库数量
     */
    @Excel(name = "已入库数量")
    private Integer quantityReceived;

    /**
     * 未入库数量
     */
    @Excel(name = "未入库数量")
    private Integer quantityPending;

    /**
     * 入库单价
     */
    @Excel(name = "入库单价")
    private BigDecimal inboundPrice;

    /**
     * 入库金额
     */
    @Excel(name = "入库金额")
    private BigDecimal inboundAmount;


    /**
     * 批次号
     */
    @Excel(name = "批次号")
    private String batchNumber;

    /**
     * 生成日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生成日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date productionDate;

    public String getIsDel() {
        return isDel;
    }

    public void setIsDel(String isDel) {
        this.isDel = isDel;
    }

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remarks;
    @Excel(name = "备注")
    private String isDel;
    private String locationCode;//库位编码
    private BigDecimal purchaseAmount; //扩展字段,进货金额
    private BigDecimal price;//扩展字段,进货单价
    private String phState;//扩展字段,进货状态

    public Integer getProductNum() {
        return productNum;
    }

    public void setProductNum(Integer productNum) {
        this.productNum = productNum;
    }

    private Integer productNum;//货品数量
    private String productTypeName;
    private String productModel;

    public BigDecimal getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(BigDecimal salePrice) {
        this.salePrice = salePrice;
    }

    private BigDecimal salePrice;//扩展退货单销售单价

    public Integer getLocationId() {
        return locationId;
    }

    public void setLocationId(Integer locationId) {
        this.locationId = locationId;
    }

    private Integer productUnit;
    private Integer locationId;

    public String getProductNames() {
        return productNames;
    }

    public void setProductNames(String productNames) {
        this.productNames = productNames;
    }

    private Integer warehouseId;

    public Integer getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(Integer warehouseId) {
        this.warehouseId = warehouseId;
    }

    private String locationName;

    public Integer getRejectedNum() {
        return rejectedNum;
    }

    public void setRejectedNum(Integer rejectedNum) {
        this.rejectedNum = rejectedNum;
    }

    private String productNames;
    private Integer rejectedNum;//退货数量

    public String getProductTypeName() {
        return productTypeName;
    }

    public void setProductTypeName(String productTypeName) {
        this.productTypeName = productTypeName;
    }

    public String getProductModel() {
        return productModel;
    }

    public void setProductModel(String productModel) {
        this.productModel = productModel;
    }

    public Integer getProductUnit() {
        return productUnit;
    }

    public void setProductUnit(Integer productUnit) {
        this.productUnit = productUnit;
    }

    public String getLocationName() {
        return locationName;
    }

    public void setLocationName(String locationName) {
        this.locationName = locationName;
    }

    public Integer getInventoryValue() {
        return inventoryValue;
    }

    public void setInventoryValue(Integer inventoryValue) {
        this.inventoryValue = inventoryValue;
    }

    public Integer getRKhkc() {
        return RKhkc;
    }

    public Integer getAlreadyNum() {
        return alreadyNum;
    }

    public void setAlreadyNum(Integer alreadyNum) {
        this.alreadyNum = alreadyNum;
    }

    public void setRKhkc(Integer RKhkc) {
        this.RKhkc = RKhkc;
    }

    private Integer inventoryValue;
    private Integer RKhkc;
     private Integer alreadyNum;//退货已入库

    public String getPhState() {
        return phState;
    }

    public void setPhState(String phState) {
        this.phState = phState;
    }

    public BigDecimal getPurchaseAmount() {
        return purchaseAmount;
    }

    public void setPurchaseAmount(BigDecimal purchaseAmount) {
        this.purchaseAmount = purchaseAmount;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }


    public String getLocationCode() {
        return locationCode;
    }

    public void setLocationCode(String locationCode) {
        this.locationCode = locationCode;
    }

    public String getBatchNumber() {
        return batchNumber;
    }

    public void setBatchNumber(String batchNumber) {
        this.batchNumber = batchNumber;
    }


    public void setRkDetailsId(Integer rkDetailsId) {
        this.rkDetailsId = rkDetailsId;
    }

    public Integer getQuantityThisTime() {
        return quantityThisTime;
    }

    public void setQuantityThisTime(Integer quantityThisTime) {
        this.quantityThisTime = quantityThisTime;
    }

    public Integer getRkDetailsId() {
        return rkDetailsId;
    }

    public void setInventoryNumber(String inventoryNumber) {
        this.inventoryNumber = inventoryNumber;
    }

    public String getInventoryNumber() {
        return inventoryNumber;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setPhCode(String phCode) {
        this.phCode = phCode;
    }

    public String getPhCode() {
        return phCode;
    }

    public void setPhDetailsId(Integer phDetailsId) {
        this.phDetailsId = phDetailsId;
    }

    public Integer getPhDetailsId() {
        return phDetailsId;
    }


    public void setQuantityReceived(Integer quantityReceived) {
        this.quantityReceived = quantityReceived;
    }

    public Integer getQuantityReceived() {
        return quantityReceived;
    }

    public void setQuantityPending(Integer quantityPending) {
        this.quantityPending = quantityPending;
    }

    public Integer getQuantityPending() {
        return quantityPending;
    }

    public void setInboundPrice(BigDecimal inboundPrice) {
        this.inboundPrice = inboundPrice;
    }

    public BigDecimal getInboundPrice() {
        return inboundPrice;
    }

    public void setInboundAmount(BigDecimal inboundAmount) {
        this.inboundAmount = inboundAmount;
    }

    public BigDecimal getInboundAmount() {
        return inboundAmount;
    }

    public void setProductionDate(Date productionDate) {
        this.productionDate = productionDate;
    }

    public Date getProductionDate() {
        return productionDate;
    }

    @Override
    public String toString() {
        return "PyInboundDetalis{" +
                "rkDetailsId=" + rkDetailsId +
                ", inventoryNumber='" + inventoryNumber + '\'' +
                ", productCode='" + productCode + '\'' +
                ", phCode='" + phCode + '\'' +
                ", phDetailsId=" + phDetailsId +
                ", quantityThisTime=" + quantityThisTime +
                ", quantityReceived=" + quantityReceived +
                ", quantityPending=" + quantityPending +
                ", inboundPrice=" + inboundPrice +
                ", inboundAmount=" + inboundAmount +
                ", batchNumber='" + batchNumber + '\'' +
                ", productionDate=" + productionDate +
                ", remarks='" + remarks + '\'' +
                ", isDel='" + isDel + '\'' +
                ", locationCode='" + locationCode + '\'' +
                ", purchaseAmount=" + purchaseAmount +
                ", price=" + price +
                ", phState='" + phState + '\'' +
                ", productNum=" + productNum +
                ", productTypeName='" + productTypeName + '\'' +
                ", productModel='" + productModel + '\'' +
                ", salePrice=" + salePrice +
                ", productUnit=" + productUnit +
                ", locationId=" + locationId +
                ", warehouseId=" + warehouseId +
                ", locationName='" + locationName + '\'' +
                ", productNames='" + productNames + '\'' +
                ", rejectedNum=" + rejectedNum +
                ", inventoryValue=" + inventoryValue +
                ", RKhkc=" + RKhkc +
                ", alreadyNum=" + alreadyNum +
                '}';
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getRemarks() {
        return remarks;
    }


}
